<?php
/**
 * utilWebeditor
 *
 *
 * @package     util
 * @subpackage  Webeditor
 * @author      Platform Team
 */

class utilWebeditor
{
    /**
     * 드라이버  호출
     * @param string $sName (기본 : simplex 에디터)
     * @return utilWebeditorDriver[Driver명]
     */
    public static function driver($sName='simplex')
    {
        $sClass = 'utilWebeditorDriver' . ucfirst(strtolower($sName));

        if (!class_exists($sClass)) {
            throw new Exception('Webeditor Driver Class is not found', E_ERROR);
        }

        $Driver = new $sClass();

        return $Driver;
    }
}
